@import "../../assets/styles/theme.module.scss";
.dashboard_textfield {
  min-width: 15.9375rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  &.select {
    > label {
      input[type="text"],
      input[type="password"] {
        height: 2.5rem;
      }
    }
  }
  .dashboard_list {
    padding: 0.5rem;
    background: #fff;
    width: 96%;
    bottom: -1.3rem;
    box-shadow: rgba($color: #000000, $alpha: 0.25) 0 4px 8px 0;
    border-radius: 5px;
    color: #000000;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 2.8rem;
    height: max-content;
    .dashboard_history_search_list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1rem;
      .dashboard_history_search_item {
        padding: 5px 8px;
        border-radius: 5px;
        background-color: #efefef;
        text-align: center;
        margin-bottom: 0.5rem;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        cursor: pointer;
      }
    }
  }

  .dashboard_label {
    white-space: nowrap;
    display: inline-block;
    min-width: 100px;
    text-align: right;
    &.checkbox {
      color: white;
      cursor: pointer;
    }
  }
  > label {
    width: 100%;
    input[type="text"],
    input[type="password"] {
      width: 100%;
      padding: 0.5rem 2rem;
      font-size: 1rem;
      outline: none;
      border-radius: 5rem;
      border: none;
      height: 3.5rem;
      ::placeholder {
        color: gray;
        font-size: 1.1rem;
      }
    }
    .dashboard_svg {
      position: absolute;
      bottom: 50%;
      right: 1rem;
      cursor: pointer;
      transition: 0.3s;
      transform: translateY(50%);
    }
    .dashboard_arrow {
      position: absolute;
      bottom: 50%;
      right: 1rem;
      cursor: pointer;
      transition: 0.3s;
      transform: translateY(50%) rotate(180deg);
      &.arrow_bottom {
        transform: translateY(50%) rotate(0deg);
      }
    }

    &.is_checkbox {
      display: flex;
      align-items: center;
    }
  }
  &.error {
    label {
      position: relative;
      > input[type="text"],
      input[type="password"] {
        border-color: $error;
      }
    }
    ::before {
      position: absolute;
      content: attr(data-error);
      display: inline-block;
      font-size: 15px;
      color: $error;
      bottom: -1.4rem;
      left: 1rem;
    }
  }
}
